package com.example.demo.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.Dto.AddressDto;
import com.example.demo.Dto.AddressUpdateDto;
import com.example.demo.VO.AddressInfoVo;
import com.example.demo.po.Address;
import org.springframework.stereotype.Service;


public interface AddressService extends IService<Address> {
    void add(AddressDto addressDto);

    AddressInfoVo getAll(Long id);

    void delect(Long id);

    void updateAddress(AddressUpdateDto addressUpdateDto);

    IPage<AddressInfoVo> getAlladdresses(Integer pageSize, Integer pageNum);
}
